//
//  CTMediator+WebAction.m
//  SleepingElf
//
//  Created by karong on 2023/7/5.
//

#import "CTMediator+WebAction.h"
/// 類名
NSString * const SECTMediatorTargetWeb = @"Web";
/// 方法名
NSString * const SECTMediatorActionShowWeb = @"web";
@implementation CTMediator (WebAction)

- (UIViewController *)ct_showWebWithUrl:(NSString *)url titleStr:(NSString *)titleStr showNav:(BOOL)showNav closeHandle:(EmptyBlock)closeHandle {
    return [self performTarget:SECTMediatorTargetWeb
                        action:SECTMediatorActionShowWeb
                        params:@{@"url":SEEmptyStr(url),
                                 @"titleStr":SEEmptyStr(titleStr),
                                 @"showNav":@(showNav),
                                 @"closeHandle":closeHandle
                               }
             shouldCacheTarget:YES];
}

@end
